/**
 * 金币商品详情路由
 * Created by yanjd on 2017/9/19.
 */
//手游金币详情页面
const CoinDetail = r => require.ensure([], () => r(require('components/mobileGame/coin_detail/detail.vue')), '/mobile-game/coin-detail');
//手游金币确认订单页面
const CoinBuy = r => require.ensure([], () => r(require('components/mobileGame/coin_detail/coin_buy.vue')), '/mobile-game/coin-detail');
// 手游游戏币发布页面
const SellSetMessageCoin = r => require.ensure([], () => r(require('components/mobileGame/sell/set_message_coin.vue')), '/mobile-game/coin-sell');
// 手游游戏币发布成功页面
const SellSuccessCoin = r => require.ensure([], () => r(require('components/mobileGame/sell/success_coin.vue')), '/mobile-game/coin-sell');

export default [
  {
    path: 'detail/:goodsId',
    component: CoinDetail,
    name: 'MGCoinDetail',
    meta: {isPublish: true, requireAuth: false}
  },
  {
    path: 'buy/:goodsId',
    component: CoinBuy,
    name: 'MGCoinBuy',
    meta: {isPublish: true, requireAuth: true, toFullPath: true}
  },
  {
    path: 'message-coin',
    name: 'MGSellSetMessageCoin',
    component: SellSetMessageCoin,
    meta: {isPublish: true, requireAuth: true, toFullPath: true}
  },
  {
    path: 'success-coin',
    name: 'MGSellSuccessCoin',
    component: SellSuccessCoin,
    meta: {isPublish: true, requireAuth: true, toFullPath: true}
  }
]
